<?php /* @var $this Controller */ ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
    <title><?php echo CHtml::encode($this->pageTitle);?></title>
    <meta name="description"        content="Quản Trị Website"/>
    <meta name="keywords"           content=""/>
    <meta name="author"             content="RoamCat"/>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
    <meta name="viewport"           content="width=device-width" />     

    <!-- My CSS -->
    <link rel="stylesheet" type="text/css" media="screen, projection" href="<?php echo Yii::app()->request->baseUrl; ?>/css/common/FontAwesome/font-awesome.css"/>
    <link rel="stylesheet" type="text/css" media="screen, projection" href="<?php echo Yii::app()->request->baseUrl; ?>/css/admin/admin_layout.css"/>

    <link rel="stylesheet" type="text/css" media="screen" href="<?php echo Yii::app()->request->baseUrl; ?>/css/common/themes/flick/jquery.ui.all.css"/>
    <link rel="stylesheet" type="text/css" media="screen" href="<?php echo Yii::app()->request->baseUrl; ?>/css/common/css_menu/menu_horizon.css"/>
    <!-- End My CSS -->

    <!-- My Javascript -->
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/assets/javaScript/jquery-1.8.2.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/assets/javaScript/jquery-ui-1.9.0.custom.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/assets/javaScript/OS_function.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/assets/javaScript/html_encoder.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/assets/tool/ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/assets/javaScript/ajaxfileupload.js"></script>
    <!-- End My JavaScript -->
</head>

<body>

<div class="header">
    <div class="menu_left">  
        <a title="Trang Chủ" href="./">
            <img 
                alt="<?=CHtml::encode(Yii::app()->name);?>"
                src=""
                class="logo_left"
                align="top"
            />
        </a>

        <span class="company_name">
            UNTQ Group
        </span>
    </div>

    <div class="menu_right">
        <div class="account">
            <?php if (    !Yii::app()->user->isGuest ) {?>
            <ul class = "user_navigation" >
                <li class="li_pannel">
                    <a href="" class="link_header"><?=Yii::app()->user->name;?></a>
                    <ul>
                        <li id="update_account"     ><a href="javascript:void(0);">Sửa thông tin cá nhân</a></li>
                        <li id="change_password"    ><a href="javascript:void(0);">Đổi mật khẩu</a></li>
                        <li id="manage_website"     ><a href="~/admin">Quản Lý Website</a></li>
                        <li id="btn_logout"         ><?php echo CHtml::link('Thoát',array('site/logout')); ?></li>
                    </ul>
                </li>
            </ul>
            <?php }?>
        </div><!-- End div account -->
    </div><!-- End div menu_right -->
</div><!-- End div header -->

<div class="clear"></div>

<div class="nav_primary">
    <div class="horizon_navigation">
        <ul id="nav_h" class="dropdown">
            <li class="symbol" ><a href="<?=Yii::app()->baseUrl;?>"><i class="fa fa-home fa-2x"></i></a></li>

            <li class="separated_line"></li>

            <li>
                <a href="javaScript:void();">Hệ Thống</a>

                <ul>
                    <li><?=CHtml::link("Người Dùng",array("account/index"));?></li>
                    <li><?=CHtml::link("Website",array("site/index"));?></li>
                    <li><?php echo CHtml::link("Trình Diễn Ảnh",array("images/index")); ?></li>
                </ul>
            </li>

            <li class="separated_line"></li>

            <li>
                <a href="javaScript:void();">Kho Hàng</a>

                <ul>
                    <li><?php echo CHtml::link("Danh Mục",array("category/index")); ?></li>
                    <li><?php echo CHtml::link("Sản Phẩm",array("product/index")); ?></li>
                </ul>
            </li>

            <li class="separated_line"></li>

            <li>
                <a href="javaScript:void();">Bài Viết</a>

                <ul>
                    <li><?php echo CHtml::link("Chủ Đề",array("articleCategory/index")); ?></li>
                    <li><?php echo CHtml::link("Thông Tin",array("article/index")); ?></li>
                </ul>
            </li>
        </ul>
    </div><!-- End class horizon_navigation -->
</div><!-- End class nav_primary -->

<div class="clear"></div>

<?php echo $content; ?>

<div class="clear"></div>

<!-- Footer -->
<div class="footer">
    <div class="logo_footer">            
        <div class="text_left align_left">
        </div>
    </div>

    <div class="text_footer">
    <div class="align_left text_left">
        Tuấn Nguyễn - Làm trang web nhỏ lẻ dạo<br/>
        Địa Chỉ: Thành phố Hồ Chí Minh<br/>
        Điện Thoại: 0902-9919-52
    </div>

        <div class="text_right align_right">
            Bản quyền thuộc về &copy; 2011 <a href="">RoamCat</a>.<br/>
            Thiết kế và tạo trang bởi <a href="">Roam Cat</a>
        </div>
    </div>
</div>
<!-- End footer -->

<iframe
    id       = "integration_asynchronous"
    name     = "integration_asynchronous"
    style    = "width : 0px;
                height: 0px;"
></iframe>

</body>
</html>
